package thread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

public class APP {
	public static void main(String[] args) {
 		Runnable1 a = new Runnable1();
 		Runnable1 b = new Runnable1();
//		Thread t1 = new Thread(a);
//		Thread t2 = new Thread(a);
//		t1.start();
//		t2.start();
//		
//		System.out.println("启动完毕");
		
		
	//	ThreadPoolExecutor threadPool = new ThreadPoolExecutor(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue)
		 
		ExecutorService pool = Executors.newCachedThreadPool();
		pool.execute(a);
		pool.execute(b);
		System.out.println("1");
	}
}
